<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>demo4</title>
	<script type="text/javascript">
		arr=[45,5,78,90];
		function arrfun(arr){
			len=arr.length;
			console.log(len);
			arr2=[];
			for(i=0;i<len;i++){
				arr2[len-i-1]=arr[i];
			}
			return arr2;
		}
		 res=arrfun(arr);
		console.log(res);

	</script>
</head>
<body>
	
</body>
</html>